package leetcode;

public class Test0717 {
    public boolean isOneBitCharacter(int[] bits) {
        //100
        //1110
        //1010
        int start=0;
        while (start<bits.length){
            if(bits[start]==0){
                start++;
                if(start==bits.length)
                    return true;
            }
            else {
                start+=2;
                if(start==bits.length)
                    return false;
            }
        }
        return false;
    }
}
